import 'package:fish_redux/fish_redux.dart';
import '../../../app_files.dart';

class CheckListModel {
  List items;
  int currentPage = 1;
  EasyRefreshController refreshController = EasyRefreshController();
}

class CheckListViewState implements Cloneable<CheckListViewState> {
  String title;
  String itemID;
  String planID;
  int checkStatus = 1;
  Map<String, CheckListModel> listModels = Map();
  GlobalKey scaffoldKey = GlobalKey();

  @override
  CheckListViewState clone() {
    return CheckListViewState()
      ..itemID = itemID
      ..title = title
      ..checkStatus = checkStatus
      ..listModels = listModels
      ..scaffoldKey = scaffoldKey
      ..planID = planID;
  }
}

CheckListViewState initState(Map<String, dynamic> args) {
  return CheckListViewState()
    ..itemID = args['itemID']
    ..planID = args['planID']
    ..title = args['title'];
}
